home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n20.arc / PCSORT.DOC < prev    next >
Internet Message Format  |  1990-10-29  |  5KB

  1. Date:  19-Oct-90 12:19 EDT
  2. From:  Chris Barr [PC MagNet] [72241,13]
  3. Subj:  PCSORT.DOC
  4.  
  5. PCSORT, by Michael J. Mefford, is a multi-line, multi-field text file 
  6. sorter, that does everything SORT.EXE can do--and plenty more.
  7.  
  8. USING PCSORT
  9. The syntax for PCSORT is:
  10.  
  11.      PCSORT [filename] [options]
  12.  
  13. PCSORT COMMAND-LINE SUMMARY 
  14. /Sn            n=size of record in lines (1-9) 
  15.             Default=1
  16. /Pn            n=sort priority (1-9) 
  17.             Default=1
  18. /R            Sort current priority in reverse order 
  19.             Default = ascending
  20. /N            Numeric sort current priority 
  21.             Default = Alphanumeric
  22. /L[n]            Line sort: 
  23.             n=record sort line (1-9) 
  24.             default=1
  25.             default sort is a line sort
  26. /[B][+] nn [xx [y]]    Block or column sort:
  27.                 nn=start column 
  28.             xx=width 
  29.             y=sort line (1-9)
  30.             defaults: nn=1; xx=start column to end of line; y=1
  31. /W [+|-] n        Word sort: 
  32.             n=word count
  33.             default = plus 1
  34.             minus = count from end of record 
  35. /C              Case sensitive sort 
  36.             Default = Case insensitive
  37.  
  38. Shown above are the many switches you can use, either at the command 
  39. line or within batch files, to configure PCSORT for your own needs. 
  40. The options listed need be used only if you're using PCSORT as a 
  41. filter--in combination with the DOS redirection characters |, <, and >. 
  42. A common example is piping DOS directory's output to a filter and 
  43. redirecting the filter's output to a file. 
  44.  
  45. PCSORT MENU COMMAND SUMMARY
  46.  
  47. PgUp/PgDn       Next page
  48. Arrow keys      Cursor
  49. Home(1)            Beginning of column
  50. Home(2)            Top of page
  51. Home(3)            Top of text (the third time you press Home)
  52. End(1)            End of column
  53. End(2)            End of page
  54. End(3)            End of text (the third time you press End)
  55. Ctrl Home       Beginning of text
  56. Ctrl End        End of text
  57. Enter            Beginning of next line
  58. F1            Displays all sort fields at a glance
  59. Alt-F1            Resets all the sort variables to their defaults
  60. F2            Save file
  61. F3            New file
  62. F4            Sort text
  63. F5            Increase lines per record (1-9)
  64. Shift F5        Decrease lines per record
  65. /F6            Select next key priority (1-9)
  66. Shift F6        Select previous key priority}
  67. F7            Sort order (de/ascending)
  68. F8            Alphanumeric or Numeric sort
  69. F9            Select next Field type: Line, block, word or none
  70. Shift F9        Select previous Field type
  71. F10            Mark the record line for line sort
  72.             or mark block sort field
  73.             or select sort word count
  74. Shift F10       Reverse selection of word count
  75. Esc            Exit PCSORT
  76.  
  77. This listing of PCSORT's navigation keys demonstrates the program's 
  78. versatility in sorting in up to 9 priority orders. Each priority can 
  79. be set independently of the others. Key commands, in general, operate 
  80. as you might expect. Note, however, the varied uses of the Home and 
  81. End keys for traveling throughout the file; each key's role, here, 
  82. depends on the number of times you press it.
  83.  
  84. CUSTOMIZING PCSORT
  85.             by Michael J. Mefford
  86.  
  87. Some systems, especially laptops, do not display color contrasts very 
  88. well. If you find PCSORT hard to read, you can force PCSORT to use 
  89. black-and-white attributes by entering the command MODE BW80 before 
  90. running PCSORT. The best way to do that is from a batch file, as shown:
  91.     MODE BW80
  92.     PCSORT %1 %2
  93. If you have a color system and PCSORT is using black and white attributes, 
  94. chances are some other application has changed the video mode. To encourage 
  95. PCSORT to use color, issue the DOS command
  96.      MODE CO80
  97. before running PCSORT.
  98.     The following instructions will enable you to customize the colors 
  99. used by PCSORT. Start by making a backup copy of PCSORT.COM and then enter
  100.      DEBUG PCSORT.COM
  101. You are now ready to modify PCSORT.COM. If at any time you make a mistake, 
  102. you can abort the editing process by entering Q. The last two commands that 
  103. you enter after entering any modifications are
  104.      W
  105.      Q
  106. for Write to disk and Quit DEBUG.
  107.  
  108. COLOR SCHEME
  109. Enter the following Debug instructions, replacing the xx with a hexadecimal 
  110. color value. The default color values for the menu color, the text, and the 
  111. block marker, and their respective descriptions, are shown as comments to the 
  112. right of the semicolons. Do not type in the comments.
  113.      E 106 xx  ; 71  Blue on light gray 
  114.      E 107 xx  ; 17  Light gray on blue          
  115.      E 108 xx  ; 31  Blue on cyan 
  116. Alternate colors may be selected from the following list. The background color 
  117. number is entered for the first x and the foreground color for the second x. 
  118. Do not use a light color for the background, or the display will blink.
  119.      Dark        Light
  120.      0 Black     8 Dk. gray
  121.      1 Blue      9 Lt. blue
  122.      2 Green     A Lt. green
  123.      3 Cyan      B Lt. cyan
  124.      4 Red       C Orange
  125.      5 Magenta   D Violet
  126.      6 Brown     E Yellow
  127.      7 Lt. gray  F White
  128. For example, to change the Block marker color from blue on cyan (31) to 
  129. blue on light gray (17), you would enter
  130.      E 108 17
  131. PCSORT turns on the border, and some monitors can not handle that. To 
  132. disable the border, enter
  133.      E 10C 1
  134. Replace the 1 with a 0 to re-enable the border.
  135.     Finish the DEBUG session with
  136.      W
  137.      Q
  138.  
  139.